Hyperinflation with mechanical ventilator